<script language="javascript" type="text/javascript">
  var displayHist = function(data) {
      mydata = jQuery.parseJSON(data);
      plot = $.jqplot('chartdiv',  mydata,
      { title:'Tweet distribution',
        axes:{yaxis:{min:0, max:533, label:'count'},
          xaxis:{min:10350, max: 10378, label:'time'}},
        series:[{color:'#5FAB78', label: 'histogram'}],
      });
  }

  var selectHist = function(query) {
      jQuery.data('charttitle', 'title', query + " histogram");
      $.get("${dataPath}/hist/" + query +".hist", displayHist);
  }
</script>